<cfsilent>
	<!--- m&auml;chtige scrolls --->
	<cfparam name="possiblePrespicPeakScrolls" type="numeric" default="0" />
	<cfparam name="possibleCrabPincerScrolls" type="numeric" default="0" />
	<cfparam name="possibleRibChopScrolls" type="numeric" default="0" />
	<cfparam name="possibleFlintScrolls" type="numeric" default="0" />
	<cfparam name="form.prespicPeakAvailable" type="numeric" default="0" />
	<cfparam name="form.crabPincerAvailable" type="numeric" default="0" />
	<cfparam name="form.ribChopAvailable" type="numeric" default="0" />
	<cfparam name="form.flintAvailable" type="numeric" default="0" />
	<cfparam name="form.multiplicator" type="numeric" default="0" />
	<cfparam name="formIsSubmittedPowerful" type="boolean" default="false" />

	<cfset prespicPeakMod = 75 />
	<cfset crabPincerMod = 75 />
	<cfset ribChopMod = 45 />
	<cfset flintMod = 30 />

	<!--- mittlere scrolls --->
	<cfparam name="possiblePrespicPeakMedium" type="numeric" default="0" />
	<cfparam name="possibleCrabPincerMedium" type="numeric" default="0" />
	<cfparam name="form.prespicPeakAvailableMedium" type="numeric" default="0" />
	<cfparam name="form.crabPincerAvailableMedium" type="numeric" default="0" />
	<cfparam name="form.multiplicatorMedium" type="numeric" default="0" />
	<cfparam name="formIsSubmittedMedium" type="boolean" default="false" />

	<cfset prespicPeakModMedium = 70 />
	<cfset crabPincerModMedium = 70 />


	<!--- berechnung nach form submit --->
	<cfif formIsSubmittedPowerful>
		<cfset possiblePrespicPeakScrolls = prespicPeakAvailable \ prespicPeakMod />
		<cfset possibleCrabPincerScrolls = crabPincerAvailable \ crabPincerMod />
		<cfset possibleRibChopScrolls = ribChopAvailable \ ribChopMod />
		<cfset possibleFlintScrolls = flintAvailable \ flintMod />
		<cfif form.multiplicator gt 0>
			<cfset necessaryPrespicPeak = prespicPeakMod * multiplicator />
			<cfset necessaryCrabPincer = crabPincerMod * multiplicator />
			<cfset necessaryRibChop = ribChopMod * multiplicator />
			<cfset necessaryFlint = flintMod * multiplicator />
		</cfif>
	</cfif>
	<cfif formIsSubmittedMedium>
		<cfset possiblePrespicPeakMedium = prespicPeakAvailableMedium \ prespicPeakModMedium />
		<cfset possibleCrabPincerMedium = crabPincerAvailableMedium \ crabPincerModMedium />
		<cfif form.multiplicatorMedium gt 0>
			<cfset necessaryPrespicPeakMedium = prespicPeakModMedium * multiplicatorMedium />
			<cfset necessaryCrabPincerMedium = crabPincerModMedium * multiplicatorMedium />
		</cfif>
	</cfif>
</cfsilent>
<cfoutput>
	<div class="page-title"  style="margin:0 0 0 10;">
		St&auml;rkescrolls-berechnungs-dings
	</div>
	<div class="float-left" style="padding:5px;">
		<cfpod title="M&auml;chtige Schriftrollen" height="224" width="430" headerStyle="color:black;">
			<form name="form" method="post">
				<table cellpadding="1" cellspacing="1" class="no-border" width="100%">
					<tr>
						<th>
							Prespik Stachel:
						</th>
						<td>
							<input type="text" name="prespicPeakAvailable" size="4" value="#form.prespicPeakAvailable#" />
						</td>
						<td>
							reichen f&uuml;r #possiblePrespicPeakScrolls# Scrolls
						</td>
					</tr>
					<tr>
						<th>
							Krebsschere:
						</th>
						<td>
							<input type="text" name="crabPincerAvailable" size="4" value="#form.crabPincerAvailable#" />
						</td>
						<td>
							reichen f&uuml;r #possibleCrabPincerScrolls# Scrolls
						</td>
					</tr>
					<tr>
						<th>
							Rippchen:
						</th>
						<td>
							<input type="text" name="ribChopAvailable" size="4" value="#form.ribChopAvailable#" />
						</td>
						<td>
							reichen f&uuml;r #possibleRibChopScrolls# Scrolls
						</td>
					</tr>
					<tr>
						<th>
							Feuerstein:
						</th>
						<td>
							<input type="text" name="flintAvailable" size="4" value="#form.flintAvailable#" />
						</td>
						<td>
							reichen f&uuml;r #possibleFlintScrolls# Scrolls
						</td>
					</tr>
						<tr>
						<th style="vertical-align:top;">
							Mats multiplicator:
						</th>
						<td style="vertical-align:top;">
							<input type="text" name="multiplicator" size="4" value="#form.multiplicator#" />
						</td>
						<td>
							<input type="hidden" name="formIsSubmittedPowerful" value="true" />
							<input type="submit" name="submit" value="berechnen" />
						</td>
					</tr>
					<tr>
						<td colspan="3" class="info-message">
							<cfif formIsSubmittedPowerful and form.multiplicator gt 0>
								Um #multiplicator# m&auml;chtige St&auml;rke scrolls zu bekommen brauchst du:<br />
								#necessaryPrespicPeak# Prespipkstachel<br />
								#necessaryCrabPincer# Krebsschere<br />
								#necessaryRibChop# Rippchen<br />
								#necessaryFlint# Feuerstein<br />
								Eintauschen bei Hans Engel Ohmratz [-2,-3]
							</cfif>
						</td>
					</tr>
				</table>
			</form>
		</cfpod>
	</div>
	<div class="float-left" style="padding:5px;">
		<cfpod title="Mittlere Schriftrollen" height="224" width="430" headerStyle="color:black;">
			<form name="form" action="index.cfm?contentPage=strength.cfm" method="post">
				<table cellpadding="1" cellspacing="1" class="no-border" width="100%">
					<tr>
						<th>
							Prespik Stachel:
						</th>
						<td>
							<input type="text" name="prespicPeakAvailableMedium" size="4" value="#form.prespicPeakAvailableMedium#" />
						</td>
						<td>
							reichen f&uuml;r #possiblePrespicPeakMedium# Scrolls
						</td>
					</tr>
					<tr>
						<th>
							Krebsschere:
						</th>
						<td>
							<input type="text" name="crabPincerAvailableMedium" size="4" value="#form.crabPincerAvailableMedium#" />
						</td>
						<td>
							reichen f&uuml;r #possibleCrabPincerMedium# Scrolls
						</td>
					</tr>
					<tr>
						<th style="vertical-align:top;">
							Mats multiplicator:
						</th>
						<td style="vertical-align:top;">
							<input type="text" name="multiplicatorMedium" size="4" value="#form.multiplicatorMedium#" />
						</td>
						<td>
							<input type="hidden" name="formIsSubmittedMedium" value="true" />
							<input type="submit" name="submit" value="berechnen" />
						</td>
					</tr>
					<tr>
						<td colspan="3" class="info-message">
							<cfif formIsSubmittedMedium and form.multiplicatorMedium gt 0>
								Um #multiplicatorMedium# mittlere St&auml;rke scrolls zu bekommen brauchst du:<br />
								#necessaryPrespicPeakMedium# Prespipkstachel<br />
								#necessaryCrabPincerMedium# Krebsschere<br />
								Eintauschen bei Hans Engel Ohmratz [-2,-3]
							</cfif>
						</td>
					</tr>
				</table>
			</form>
		</cfpod>
	</div>
	<div class="clear-float" style="padding:5px;" />
		<cfpod title="Der beste Weg um St&auml;rke auf 101 zu scrollen" height="90" width="870" headerStyle="color:black;">
			25 Kleine scrolls (2500 Pilzlingdorn)<br />
			24 Mittere scrolls (1680 Prespikstachel, 1680 Krebsscheere)<br />
			26 M&auml;chtige scrolls (1950 Prespikstachel, 1950 Krebsscheere, 1170 Rippchen, 780 Feuerstein)
		</cfpod>
</cfoutput>